/*
 * @Date: 2024-04-02 14:58:12
 * @LastEditors: bingkui.wu
 * @LastEditTime: 2024-04-02 17:02:06
 * @Description: 单词
 */
import mongoose, { Schema, Model, Document } from "mongoose";

export interface IBookWord extends Document {
    /** 单词Id */
    wordId: string;
    /** 单词英文 */
    word: string;
    /** 翻译 */
    intro: string;
    /** 音标 */
    sound_txt_en: string;
}

export interface IBookWordModel extends Model<IBookWord> {}

const schema = new Schema({
    wordId: String,
    word: String,
    intro: String,
    sound_txt_en: String,
});

export const BookWord = mongoose.model<IBookWord>("book_word", schema) as IBookWordModel;
